<?php
require_once('db.php');
///////////// SELECT USERS /////
$allUsers = findAll('users');
////////////////////////////
var_dump($allUsers);

?>
<link href="css/form.css" rel="stylesheet" type="text/css" />

<table width="80%" border="1" cellpadding="5" cellspacing="0">
  <thead>
    <tr>
      <th>#</th>
      <th>Name</th>
      <th>Email</th>
      <th>Status</th>
      <th>Added Date</th>
      <th>Modified Date</th>
    </tr>
  </thead>
  <tbody>
<?php
$i = 1;
while ($user = mysql_fetch_assoc($allUsers))
{
  $color = (($i++ % 2)==0)?'lightgreen':'lightblue';
?>
    <tr style="background-color:<?=$color?>">
      <td><?=$user['id']?></td>
      <td><?=$user['name']?></td>
      <td><?=$user['email']?></td>
      <td><?=$user['status']?></td>
      <td><?=$user['register_date']?></td>
      <td><?=$user['modify_date']?></td>
    </tr>
<?php
 pr($user);
}
?>
  </tbody>
</table>
